package com.ibm.cloud.envcheck.factory;

import com.ibm.cloud.envcheck.bean.RemoteParam;
import com.ibm.cloud.envcheck.service.ICheckService;
import com.ibm.cloud.envcheck.service.ServiceHandler;


public class CheckServiceFactory {
	public static void main(String []args) throws InstantiationException, IllegalAccessException{
		ServiceHandler handler = new ServiceHandler();
		handler.init("com.ibm.cloud.envcheck.basicservice");
		ICheckService service = handler.getInstance(108);
		
		RemoteParam pp= new RemoteParam();
		pp.setCommand("ls");
		pp.setHost("9.111.139.142");
		pp.setPassword("macky123");
		pp.setPort(22);
		pp.setUsername("root");
		
		//System.out.println(service.getType());
		
		//service.handle(pp);
		//System.exit(0);
		
	}
}
